|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.core.sync.RemoteContentsCache
This class implements a caching facility that can be used by TeamProviders to cache contents
Method Summary | |
static void |
disableCache(String cacheId)
Disable the cache, dispoing of any file contents in the cache. |
static void |
enableCaching(String cacheId)
Enables the use of remote contents caching for the given cacheId. |
static RemoteContentsCache |
getCache(String cacheId)
Return the cache for the given id or null if caching is not enabled for the given id. |
RemoteContentsCacheEntry |
getCacheEntry(String id)
|
protected IPath |
getCachePath()
|
protected ILock |
getLock()
Provide access to the lock for the cache. |
String |
getName()
|
boolean |
hasEntry(String id)
Return whether the cache contains an entry for the given id. |
static boolean |
isCachingEnabled(String cacheId)
Returns whether caching has been enabled for the given Id. |
protected void |
purgeFromCache(RemoteContentsCacheEntry entry)
Purge the given cache entry from the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void enableCaching(String cacheId)
cacheId
- the unique Id of the cache being enabled
TeamException
- if the cache area on disk could not be properly initializedpublic static boolean isCachingEnabled(String cacheId)
cacheId
- the unique Id of the cache
public static void disableCache(String cacheId)
cacheId
- the unique Id of the cache
TeamException
- if the cached contents could not be deleted from diskpublic static RemoteContentsCache getCache(String cacheId)
cacheId
-
public boolean hasEntry(String id)
id
- the id of the cache entry
protected IPath getCachePath()
protected void purgeFromCache(RemoteContentsCacheEntry entry)
entry
- public RemoteContentsCacheEntry getCacheEntry(String id)
id
- the id that uniquely identifes the remote resource that is cached.
public String getName()
protected ILock getLock()
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |